import {
	request
} from '@/util/api.js'

// 获取展会信息
export const getCompanyInfo = (data) => {
	return request({
		url: 'api/Company/get_zh_info',
		method: 'POST',
		data
	})
}

// 获取企业分类
export const getProductCate = () => {
	return request({
		url: 'api/Company/get_product_cate',
		method: 'post'
	})
}

// 企业列表
export const getCompanyList = (data) => {
	return request({
		url: 'api/Company/get_list',
		method: 'post',
		data
	})
}

// 展会内的企业列表
export const exhibitionCompanyList = (data) => {
	return request({
		url: 'api/exhibition/company_list',
		method: 'post',
		data
	})
}

// 获取企业点赞收藏信息
export const likecollectionDzsc = (data) => {
	return request({
		url: 'api/Likecollection/dzsc',
		method: 'post',
		data
	})
}

// 企业主页-获取企业信息
export const CompanyShow = (data) => {
	return request({
		url: 'api/Company/show',
		method: 'post',
		data
	})
}

// 企业产品中心----产品分类
export const getFormSign = () => {
	return request({
		url: 'api/wap_product/get_form_sign',
		method: 'get',
	})
}

// 参展产品库功率筛选
export const exhibitionCondition = () => {
	return request({
		url: 'api/exhibition/condition',
		method: 'post'
	})
}

// 展会产品列表
// export const exhibitionProduct = (data) => {
// 	return request({
// 		url: 'api/exhibition/product_list',//'api/wap_product/exhibition_product',
// 		method: 'POST',
// 		data
// 	})
// }

// 推荐企业列表
export const recommendCompanyList = (data) => {
	return request({
		url: 'api/exhibition/recommend_company_list',
		method: 'POST',
		data
	})
}

// 推荐产品列表
export const recommendProductList = (data) => {
	return request({
		url: 'api/exhibition/recommend_product_list',
		method: 'POST',
		data
	})
}

// 项目案例
export const getProjectList = (data) => {
	return request({
		url: 'api/enterprise/get_list',//'api/project/get_list',
		method: 'post',
		data
	})
}

// 项目案例详情
export const getProjectDetail = (data) => {
	return request({
		url: 'api/enterprise/show',//'api/project/show',
		method: 'post',
		data
	})
}

// 荣誉资质
export const getHonoList = (data) => {
	return request({
		url: 'api/enterprise/get_honor_list',//'api/Honor/get_list',
		method: 'post',
		data
	})
}

// 动态资讯
export const getZhanNews = (data) => {
	return request({
		url: 'api/news/get_list',
		method: 'get',
		data
	})
}

// 动态资讯详情
export const getZhanNewsDetail = (data) => {
	return request({
		url: 'api/news/show',
		method: 'post',
		data
	})
}

// 判断当前用户是否已经加入圈子
export const circleIsjoin = (data) => {
	return request({
		url: 'api/circle/is_join',
		method: 'post',
		data
	})
}

// 加入圈子
export const addCircle = (data) => {
	return request({
		url: 'api/Circle/addcircle',
		method: 'post',
		data
	})
}

// 展会圈子列表（已加入）
export const circleList = (data) => {
	return request({
		url: 'api/Circle/getCircle', //api/Circle/circleindex
		method: 'get',
		data
	})
}

// 退出圈子
export const outCircle = (data) => {
	return request({
		url: 'api/Circle/outcircle',
		method: 'post',
		data
	})
}

// 申请交换名片
export const exchangeCardApply = (data) => {
	return request({
		url: 'api/business/exchange_card_apply',
		method: 'post',
		data
	})
}

// 再次交换
export const againExchange = (data) => {
	return request({
		url: 'api/business/again_exchange',
		method: 'post',
		data
	})
}

// 关注企业
export const clickOnMe = (data) => {
	return request({
		url: 'api/product/click_on_me',
		method: 'post',
		data
	})
}

// 查询企业加入的名片
export const selCircle = (data) => {
	return request({
		url: 'api/Circle/sel_circle',
		method: 'post',
		data
	})
}

// 获取企业和产品的分享二维码
export const orcodeCode = (data) => {
	return request({
		url: 'api/orcode/code',
		method: 'post',
		data
	})
}
